Integrand size = 11, antiderivative size = 42 \[ \int \sqrt {a+\frac {b}{x^2}} \, dx=\sqrt {a+\frac {b}{x^2}} x-\sqrt {b} \text {arctanh}\left (\frac {\sqrt {b}}{\sqrt {a+\frac {b}{x^2}} x}\right ) \]
[Out]
Time = 0.01 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {248, 283, 223, 212} \[ \int \sqrt {a+\frac {b}{x^2}} \, dx=x \sqrt {a+\frac {b}{x^2}}-\sqrt {b} \text {arctanh}\left (\frac {\sqrt {b}}{x \sqrt {a+\frac {b}{x^2}}}\right ) \]
[In]
[Out]
Rule 212
Rule 223
Rule 248
Rule 283
Rubi steps \begin{align*} \text {integral}& = -\text {Subst}\left (\int \frac {\sqrt {a+b x^2}}{x^2} \, dx,x,\frac {1}{x}\right ) \\ & = \sqrt {a+\frac {b}{x^2}} x-b \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,\frac {1}{x}\right ) \\ & = \sqrt {a+\frac {b}{x^2}} x-b \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {1}{\sqrt {a+\frac {b}{x^2}} x}\right ) \\ & = \sqrt {a+\frac {b}{x^2}} x-\sqrt {b} \tanh ^{-1}\left (\frac {\sqrt {b}}{\sqrt {a+\frac {b}{x^2}} x}\right ) \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 62, normalized size of antiderivative = 1.48 \[ \int \sqrt {a+\frac {b}{x^2}} \, dx=\sqrt {a+\frac {b}{x^2}} x-\frac {\sqrt {b} \sqrt {a+\frac {b}{x^2}} x \text {arctanh}\left (\frac {\sqrt {b+a x^2}}{\sqrt {b}}\right )}{\sqrt {b+a x^2}} \]
[In]
[Out]
Time = 0.02 (sec) , antiderivative size = 63, normalized size of antiderivative = 1.50
method | result | size |
default | \(-\frac {\sqrt {\frac {a \,x^{2}+b}{x^{2}}}\, x \left (\sqrt {b}\, \ln \left (\frac {2 b +2 \sqrt {b}\, \sqrt {a \,x^{2}+b}}{x}\right )-\sqrt {a \,x^{2}+b}\right )}{\sqrt {a \,x^{2}+b}}\) | \(63\) |
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 108, normalized size of antiderivative = 2.57 \[ \int \sqrt {a+\frac {b}{x^2}} \, dx=\left [x \sqrt {\frac {a x^{2} + b}{x^{2}}} + \frac {1}{2} \, \sqrt {b} \log \left (-\frac {a x^{2} - 2 \, \sqrt {b} x \sqrt {\frac {a x^{2} + b}{x^{2}}} + 2 \, b}{x^{2}}\right ), x \sqrt {\frac {a x^{2} + b}{x^{2}}} + \sqrt {-b} \arctan \left (\frac {\sqrt {-b} x \sqrt {\frac {a x^{2} + b}{x^{2}}}}{a x^{2} + b}\right )\right ] \]
[In]
[Out]
Time = 0.85 (sec) , antiderivative size = 56, normalized size of antiderivative = 1.33 \[ \int \sqrt {a+\frac {b}{x^2}} \, dx=\frac {\sqrt {a} x}{\sqrt {1 + \frac {b}{a x^{2}}}} - \sqrt {b} \operatorname {asinh}{\left (\frac {\sqrt {b}}{\sqrt {a} x} \right )} + \frac {b}{\sqrt {a} x \sqrt {1 + \frac {b}{a x^{2}}}} \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 53, normalized size of antiderivative = 1.26 \[ \int \sqrt {a+\frac {b}{x^2}} \, dx=\sqrt {a + \frac {b}{x^{2}}} x + \frac {1}{2} \, \sqrt {b} \log \left (\frac {\sqrt {a + \frac {b}{x^{2}}} x - \sqrt {b}}{\sqrt {a + \frac {b}{x^{2}}} x + \sqrt {b}}\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 69 vs. \(2 (34) = 68\).
Time = 0.30 (sec) , antiderivative size = 69, normalized size of antiderivative = 1.64 \[ \int \sqrt {a+\frac {b}{x^2}} \, dx=\frac {b \arctan \left (\frac {\sqrt {a x^{2} + b}}{\sqrt {-b}}\right ) \mathrm {sgn}\left (x\right )}{\sqrt {-b}} + \sqrt {a x^{2} + b} \mathrm {sgn}\left (x\right ) - \frac {{\left (b \arctan \left (\frac {\sqrt {b}}{\sqrt {-b}}\right ) + \sqrt {-b} \sqrt {b}\right )} \mathrm {sgn}\left (x\right )}{\sqrt {-b}} \]
[In]
[Out]
Time = 5.72 (sec) , antiderivative size = 55, normalized size of antiderivative = 1.31 \[ \int \sqrt {a+\frac {b}{x^2}} \, dx=x\,\sqrt {a+\frac {b}{x^2}}+\frac {\sqrt {b}\,\mathrm {asin}\left (\frac {\sqrt {b}\,1{}\mathrm {i}}{\sqrt {a}\,x}\right )\,\sqrt {a+\frac {b}{x^2}}\,1{}\mathrm {i}}{\sqrt {a}\,\sqrt {\frac {b}{a\,x^2}+1}} \]
[In]
[Out]